define(["app/utils/HttpClientUtils"],function (hc) {

	
	return {
		init: function(callback_Func){
			
			var unionid = $.getHashUrlParam("unionid");
			if($.isNull(unionid)){
				callback_Func.call();
			}else{
				var url = $.wjtBaseBackend + "/wjt/login_init";
				var body = {
					"unionid": unionid
				};
				hc.sendPOST(url, JSON.stringify(body),callback_Func, null, true);
			}

		},
		checkLoginEncryValid: function(val, callback_Func){
			
			var url = $.wjtBaseBackend + "/wjt/login/encryvalid";
			var body = {
				encry: val
			}
			hc.sendPOST(url, JSON.stringify(body), callback_Func, null, true);

		}

	};

});
